-- GENERATED SPELL FOR [Scarlet Lord Jesseriah McCree] --


function spell0_28964(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(52835,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28964', 556, 1)
end

function spell1_28964(pUnit, Event) --@Holy Wrath,Self--
pUnit:FullCastSpellOnTarget(52836,pUnit)
pUnit:RegisterEvent('Sorts_28964', 1000, 1)
end

function Sorts_28964(pUnit, Event)
local choix_sorts_28964 = math.random(0, 1)
if choix_sorts_28964 == 0 then
pUnit:RegisterEvent('spell0_28964', 1, 1)
end
if choix_sorts_28964 == 1 then
pUnit:RegisterEvent('spell1_28964', 1, 1)
end
end

function mob28964_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28964', math.random(1500, 3000), 1)
end

function mob28964_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28964_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28964_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28964, 1, 'mob28964_Action')
RegisterUnitEvent(28964, 2, 'mob28964_Leave')
RegisterUnitEvent(28964, 3, 'mob28964_Kill')
RegisterUnitEvent(28964, 4, 'mob28964_Die')
